import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false
//导入
import VueRouter from 'vue-router'
// import less from 'less'
//use全局使用一下
Vue.use(VueRouter)
// Vue.use(less)
//创建路由
import discoeary from './components/discoeary.vue'
import playlists from './components/playlists.vue'
import songs from './components/songs.vue'
import mvs from './components/mvs.vue'
import result from './components/result.vue'
let router = new VueRouter({
  routes:[
  {
    //配置地址 和 组件的对应关系
      //地址
      path:"/discoeary",
      //组件
      component:discoeary
  },
  {
    //配置地址 和 组件的对应关系
      //地址
      path:"/",
      //组件
      component:discoeary
  },
  {
    path:"/playlists",
    component:playlists
  },
  {
    path:"/songs",
    component:songs
  },
  {
    path:"/mvs",
    component:mvs
  },
  {
    path:"/result",
    component:result
  }
  ]
})
//导入需要路由管理的组件
//导入 elememt-ui
import ElementUI from 'element-ui'
//导入 elememt-ui 的样式
import 'element-ui/lib/theme-chalk/index.css';
//use一下
Vue.use(ElementUI)
new Vue({
  render: h => h(App),
  //挂载到vue实例上
  router
}).$mount('#app')
